// pages/ticket/ticket.js
Page({
    data: {
      ticketList: [
        { name: "打盹儿票", price: 30, type: "日光票" },
        { name: "麻将票", price: 50, type: "日光票" },
        { name: "桌游票", price: 40, type: "日光票" },
        { name: "剧本杀票", price: 60, type: "日光票" },
        { name: "K歌票", price: 70, type: "日光票" },
        { name: "酒水畅饮票", price: 168, type: "月光票" },
        { name: "纯饮威士忌", price: 88, type: "其他" },
        { name: "18人包场票", price: 3000, type: "其他" },
        { name: "24人包场票", price: 4000, type: "其他" }
      ]
    },
  
    buyTicket(e) {
      const { type, name } = e.currentTarget.dataset;
      wx.navigateTo({
        url: `/pages/pay/pay?type=${type}&name=${name}`
      });
    }
  })